package com.wlcorp.forcazamis.domain.storageassign;

import java.util.Date;
import java.util.Set;

import com.wlcorp.forcazamis.domain.baseinfo.Depot;
import com.wlcorp.forcazamis.domain.confirm.Confirm;
import com.wlcorp.forcazamis.domain.system.Staff;
import com.wlcorp.forcazamis.sys.BaseBean;
import com.wlcorp.forcazamis.sys.util.AppConstant;

public class StorageAssign extends BaseBean {
	private static final long serialVersionUID = 4709804014718628865L;
	private Long storageAssignId;
	private Staff submiter;
	private Long submiterId;
	private Date assignDate;
	private Integer state;
	private String memo;
	private Integer type;
	private Long assignToDepotId;
	private Depot assignToDepot;
	private Set<?> storageAssignSampleSet;
	private Staff assignToStaff;
	private Long assignToStaffId;
	private Long assignFromDepotId;
	private Depot assignFromDepot;
	private Long confirmId;
	private Confirm confirm;
	private boolean deleteFlag;

	public boolean isDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public Date getAssignDate() {
		return assignDate;
	}

	public void setAssignDate(Date assignDate) {
		this.assignDate = assignDate;
	}

	public Depot getAssignToDepot() {
		return assignToDepot;
	}

	public void setAssignToDepot(Depot assignToDepot) {
		this.assignToDepot = assignToDepot;
	}

	public Long getAssignToDepotId() {
		return assignToDepotId;
	}

	public void setAssignToDepotId(Long assignToDepotId) {
		this.assignToDepotId = assignToDepotId;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getStorageAssignId() {
		return storageAssignId;
	}

	public void setStorageAssignId(Long storageAssignId) {
		this.storageAssignId = storageAssignId;
	}

	public Set<?> getStorageAssignSampleSet() {
		return storageAssignSampleSet;
	}

	public void setStorageAssignSampleSet(Set<?> storageAssignSampleSet) {
		this.storageAssignSampleSet = storageAssignSampleSet;
	}

	public Staff getSubmiter() {
		return submiter;
	}

	public void setSubmiter(Staff submiter) {
		this.submiter = submiter;
	}

	public Long getSubmiterId() {
		return submiterId;
	}

	public void setSubmiterId(Long submiterId) {
		this.submiterId = submiterId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Staff getAssignToStaff() {
		return assignToStaff;
	}

	public void setAssignToStaff(Staff assignToStaff) {
		this.assignToStaff = assignToStaff;
	}

	public Long getAssignToStaffId() {
		return assignToStaffId;
	}

	public void setAssignToStaffId(Long assignToStaffId) {
		this.assignToStaffId = assignToStaffId;
	}

	public Depot getAssignFromDepot() {
		return assignFromDepot;
	}

	public void setAssignFromDepot(Depot assignFromDepot) {
		this.assignFromDepot = assignFromDepot;
	}

	public Long getAssignFromDepotId() {
		return assignFromDepotId;
	}

	public void setAssignFromDepotId(Long assignFromDepotId) {
		this.assignFromDepotId = assignFromDepotId;
	}

	public Confirm getConfirm() {
		return confirm;
	}

	public void setConfirm(Confirm confirm) {
		this.confirm = confirm;
	}

	public Long getConfirmId() {
		return confirmId;
	}

	public void setConfirmId(Long confirmId) {
		this.confirmId = confirmId;
	}

	public String getStateName() {
		String stateName = "";
		if (AppConstant.ASSIGN_STATE_SUBMITED == state) {
			stateName = "编辑中";
		} else if (AppConstant.ASSIGN_STATE_CONFIRMING == state) {
			stateName = "确认中";
		} else if (AppConstant.ASSIGN_STATE_CONFIRMED == state) {
			stateName = "已确认";
		}
		return stateName;
	}

}
